import 'package:nyh_motorcade_app/entity/contact_us_entity.dart';

contactUsEntityFromJson(ContactUsEntity data, Map<String, dynamic> json) {
	if (json['servicePhone'] != null) {
		data.servicePhone = json['servicePhone'].toString();
	}
	if (json['websiteAddress'] != null) {
		data.websiteAddress = json['websiteAddress'].toString();
	}
	if (json['companyAddress'] != null) {
		data.companyAddress = json['companyAddress'].toString();
	}
	if (json['exclusiveAdviser'] != null) {
		data.exclusiveAdviser = json['exclusiveAdviser'].toString();
	}
	if (json['contactPhone'] != null) {
		data.contactPhone = json['contactPhone'].toString();
	}
	return data;
}

Map<String, dynamic> contactUsEntityToJson(ContactUsEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['servicePhone'] = entity.servicePhone;
	data['websiteAddress'] = entity.websiteAddress;
	data['companyAddress'] = entity.companyAddress;
	data['exclusiveAdviser'] = entity.exclusiveAdviser;
	data['contactPhone'] = entity.contactPhone;
	return data;
}